﻿@{
    Layout = null;
    List<LeEdu.MODEL.UserAndGroup> str = ViewBag.uag;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EditGroupUser</title>
</head>
<body>
    <form class="form-horizontal" method="post" action="/Group/EditUserGroup">
        <input id="Hidden1" type="hidden" value="@ViewBag.id" name="UserAndGroupID" />
        <input id="Hidden1" type="hidden" value="@ViewBag.gid" name="gid" />
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">转换小组</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">选择组长</label>
                <div class="col-sm-10">
                    <select class="form-control" name="UserInfoID">
                        @foreach (var item in ViewBag.uag as List<LeEdu.MODEL.UserAndGroup>)
                                {
                            <option @(ViewBag.std == item.UserInfoID ? "selected='selected'" : "") value="@item.UserInfoID">
                                @item.Users.Uname
                            </option>
                                }
                    </select>

                </div>
            </div>
        </div>

        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </form>
</body>
</html>
